package com.websocket.model;

import com.baomidou.mybatisplus.annotation.TableField;

import java.time.LocalDateTime;

public class ChatHistory {
    private Integer id;
    private String content;
    @TableField("created_at")
    private LocalDateTime createdAt;

    public ChatHistory() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public ChatHistory(Integer id, String content, LocalDateTime createdAt) {
        this.id = id;
        this.content = content;
        this.createdAt = createdAt;
    }
// 省略构造器和getter/setter（需按规范补充）
}